% $Id: vt-beamer-common.tex,v 1.6 2010-11-12 14:51:47 benchoff Exp $
%
% This file gets included in the preamble of all versions.
%
\usepackage{ifthen}
%
%\usepackage{pgf}
%\pdfimageapplygamma=0
%\pdfimagegamma=2200
%\pdfgamma=1000
%
%
% Define VT colors
%\input{vt-color-palette}
%
%
% Themes to test/fix
%
%\usetheme{Berlin}
%\usecolortheme{albatross}
%
%
% MyTheme is defined in the Makefile from the MY_THEME variable.
\usetheme{\MyTheme}
%
% Berkeley
%\usetheme{Berkeley} % fix logo, sidebar font colors
%   Make upper left logo box orange.
%
% Themes that seem to work
%
%\usetheme{Antibes}
%\usetheme{Rochester}
%
% Use the VT color theme
\usecolortheme{vt}
%
% Theme-specific tweaks.

\ifthenelse{\equal{\MyTheme}{Antibes}}{%
        \logo{\includegraphics[height=0.5cm]{vt_shield_tag_vtbrownA230.jpg}}
}{}
\ifthenelse{\equal{\MyTheme}{Berkeley}}{%
        % Make upper left logo box orange.
        \setbeamercolor{logo}{fg=black,bg=vtorange}
        %\logo{\includegraphics[width=1.5cm]{burruss-gafoto.jpg}}
}{}
\ifthenelse{\equal{\MyTheme}{Rochester}}{%
        \logo{\includegraphics[height=0.5cm]{vt_shield_tag_vtbrownA230.jpg}}
}{}
%
% Final theme tweaks
%
% Turn off navigation symbols
\setbeamertemplate{navigation symbols}{}
%
%\usepackage{hyperref}
%\hypersetup{colorlinks=true,urlcolor=vtorange}
\hypersetup{colorlinks=true,urlcolor=vtorange,linkcolor=white}
%
% A typographic convention for the BEAMER package name.
% This is probably defined elsewhere.
\newcommand{\BEAMER}{%
        \textsc{BEAMER}
}
%
% colorBar - Draw a colored box labeled with the color
% arguments: 1 - color to show (used as background)
%            2 - color for text label (foreground)
\newcommand{\colorBar}[2]{%
  \setbeamercolor{myColor}{fg=#2,bg=#1}
  \begin{beamercolorbox}[wd=\textwidth,ht=2ex,dp=1ex,center]{myColor}
      #1
  \end{beamercolorbox}
}
